FileManager.FileManager.prototype.initMenues = function() {
    var mibp = this.mibp;
    this.rootMenu = new Ext.menu.Menu();
    this.rootMenu.add(
        {text: Plugin.messages["FileManager.popMenu.newFolder"], iconCls:'db-icn-folder-new', handler: function() { this.createFolder(this.contextFolders[0].ID); }, scope: this },
        {text: Plugin.messages["FileManager.popMenu.open"], iconCls:'db-icn-folder-open', handler: function() { this.showFolder(this.contextFolders[0].ID); }, scope: this },
        {text: Plugin.messages["FileManager.popMenu.paste"], iconCls:'db-icn-paste', handler: function() { this.paste(this.contextFolders[0]); }, scope: this },
        '-', 
        {text: Plugin.messages["FileManager.popMenu.properties"], iconCls:'db-icn-properties', handler: function() { this.showFolderProperties(this.contextFolders[0]); }, scope: this }
    );   
    
    this.folderMenu = new Ext.menu.Menu();
    this.folderMenu.add( 
        {text: Plugin.messages["FileManager.popMenu.newFolder"], iconCls:'db-icn-folder-new', handler: function() { this.createFolder(this.contextFolders[0].ID); }, scope: this },        
        {text: Plugin.messages["FileManager.popMenu.open"], iconCls:'db-icn-folder-open', handler: function() { this.showFolder(this.contextFolders[0].ID); }, scope: this },
        '-',
        //{text: 'Add to archive...', iconCls:'db-icn-folder-zip', handler: function() { this.compress(this.contextFolders, null); }, scope: this },
        {text: Plugin.messages["FileManager.popMenu.shareFolder"], iconCls:'db-icn-folder-share', handler: function() { this.shareFolder(this.contextFolders[0]); }, scope: this},
        {text: Plugin.messages["FileManager.popMenu.publishFolder"], iconCls:'db-icn-publish', handler: function() { this.publishFolder(this.contextFolders[0]); }, scope: this},        
        //{text: Plugin.messages["FileManager.popMenu.tagFolder"], iconCls:'db-icn-tag-edit', handler: function(){ this.tagItems(this.contextFolders, null); }, scope: this },
        '-',
        {text: Plugin.messages["FileManager.popMenu.cut"], iconCls:'db-icn-cut', handler: function() { this.cutFolder(this.contextFolders[0]); }, scope: this },
        {text: Plugin.messages["FileManager.popMenu.copy"], iconCls:'db-icn-copy', handler: function() { this.copyFolder(this.contextFolders[0]); }, scope: this },
        {text: Plugin.messages["FileManager.popMenu.paste"], iconCls:'db-icn-paste', handler: function() { this.paste(this.contextFolders[0]); }, scope: this },
        '-',
        {text: Plugin.messages["FileManager.popMenu.delete"], iconCls:'db-icn-delete', handler: function() { this.moveToRecycleBin(this.contextFolders, this.contextFiles); }, scope: this },
        {text: Plugin.messages["FileManager.popMenu.rename"], iconCls:'db-icn-rename', handler: function() { this.renameFolder(this.contextFolders[0]); }, scope: this },
        '-',
        {text: Plugin.messages["FileManager.popMenu.properties"], iconCls:'db-icn-properties', handler: function() { this.showFolderProperties(this.contextFolders[0]); }, scope: this }
    ); 
    
    this.sharedFolderMenu = new Ext.menu.Menu();
    this.sharedFolderMenu.add( 
        {text: Plugin.messages["FileManager.popMenu.newFolder"], iconCls:'db-icn-folder-new', handler: function() { this.createFolder(this.contextFolders[0].ID); }, scope: this },        
        {text: Plugin.messages["FileManager.popMenu.open"], iconCls:'db-icn-folder-open', handler: function() { this.showFolder(this.contextFolders[0].ID); }, scope: this },
        '-',
        //{text: 'Add to archive...', iconCls:'db-icn-folder-zip', handler: function() { this.compress(this.contextFolders, null); }, scope: this },
        //'-',
        {text: Plugin.messages["FileManager.popMenu.cut"], iconCls:'db-icn-cut', handler: function() { this.cutFolder(this.contextFolders[0]); }, scope: this },
        {text: Plugin.messages["FileManager.popMenu.copy"], iconCls:'db-icn-copy', handler: function() { this.copyFolder(this.contextFolders[0]); }, scope: this },
        {text: Plugin.messages["FileManager.popMenu.paste"], iconCls:'db-icn-paste', handler: function() { this.paste(this.contextFolders[0]); }, scope: this },
        '-',
        {text: Plugin.messages["FileManager.popMenu.delete"], iconCls:'db-icn-delete', handler: function() { this.moveToRecycleBin(this.contextFolders, null); }, scope: this },
        {text: Plugin.messages["FileManager.popMenu.rename"], iconCls:'db-icn-rename', handler: function() { this.renameFolder(this.contextFolders[0]); }, scope: this },
        '-',
        {text: Plugin.messages["FileManager.popMenu.properties"], iconCls:'db-icn-properties', handler: function() { this.showFolderProperties(this.contextFolders[0]); }, scope: this }
    );  
    
    this.recyclebinMenu = new Ext.menu.Menu();
    this.recyclebinMenu.add(
        {text: Plugin.messages["FileManager.popMenu.empty"], iconCls:'db-icn-bin-empty', handler: function() { this.emptyRecycleBin(); }, scope: this },
        {text: Plugin.messages["FileManager.popMenu.open"], iconCls:'db-icn-folder-open', handler: function() { this.showFolder(this.contextFolders[0]); }, scope: this },
        {text: Plugin.messages["FileManager.popMenu.paste"], iconCls:'db-icn-paste', handler: function() { this.paste(this.contextFolders[0]); }, scope: this },
        '-', 
        {text: Plugin.messages["FileManager.popMenu.properties"], iconCls:'db-icn-properties', handler: function() { this.showFolderProperties(this.contextFolders[0]); }, scope: this }
    );   
    
    this.fileMenu = new Ext.menu.Menu({minWidth:170});
    this.fileMenu.add( 
        {text: Plugin.messages["FileManager.popMenu.download"], iconCls:'db-icn-download', handler: function() { this.download(this.contextFiles[0].ID); }, scope: this },
        //{id: 'muPlay', text: 'Play...', iconCls:'db-icn-play', handler: function() { this.playMedia(this.contextFiles[0]); }, scope: this },
        //{id: 'muPdf', text: 'Open with Adobe Acrobat...', iconCls:'db-icn-adobe', handler: function() { this.showPDF(this.contextFiles[0]); }, scope: this },
        '-',
        //{text: 'Add to archive...', iconCls:'db-icn-folder-zip', handler: function() { this.compress(null, this.contextFiles); }, scope: this },
        //{id: 'muExtract', text: 'Extract files...', handler: function() { this.extract(this.contextFiles[0].ID); }, scope: this },
        {text: Plugin.messages["FileManager.popMenu.publishFile"], iconCls:'db-icn-publish', handler: function(){ this.publishFile(this.contextFiles[0]); }, scope: this },
        //{text: Plugin.messages["FileManager.popMenu.tagFile"], iconCls:'db-icn-tag-edit', handler: function(){ this.tagItems(null, this.contextFiles); }, scope: this },
        '-',
        {text: Plugin.messages["FileManager.popMenu.cut"], iconCls:'db-icn-cut', handler: function() { this.cutSelected(); }, scope: this },
        {text: Plugin.messages["FileManager.popMenu.copy"], iconCls:'db-icn-copy', handler: function() { this.copySelected(); }, scope: this },
        '-',
        {text: Plugin.messages["FileManager.popMenu.delete"], iconCls:'db-icn-delete', handler: function() { this.moveToRecycleBin(null, this.contextFiles); }, scope: this },
        {text: Plugin.messages["FileManager.popMenu.rename"], iconCls:'db-icn-rename', handler: function() { this.renameFile(this.contextFiles[0]); }, scope: this },
        '-',
        {text: Plugin.messages["FileManager.popMenu.properties"], iconCls:'db-icn-properties', handler: function() { this.showFileProperties(this.contextFiles[0]); }, scope: this }
    );   
    
    this.sharedFileMenu = new Ext.menu.Menu({minWidth:170});
    this.sharedFileMenu.add( 
        {text: Plugin.messages["FileManager.popMenu.download"], iconCls:'db-icn-download', handler: function() { this.download(this.contextFiles[0].ID); }, scope: this },
        //{id: 'muPlay', text: 'Play...', iconCls:'db-icn-play', handler: function() { this.playMedia(this.contextFiles[0]); }, scope: this },
        //{id: 'muPdf', text: 'Open with Adobe Acrobat...', iconCls:'db-icn-adobe', handler: function() { this.showPDF(this.contextFiles[0]); }, scope: this },
        '-',
        //{text: 'Add to archive...', iconCls:'db-icn-folder-zip', handler: function() { this.compress(null, this.contextFiles); }, scope: this },
        //{id: 'muExtract', text: 'Extract files...', handler: function() { this.extract(this.contextFiles[0].ID); }, scope: this },
        //'-',
        {text: Plugin.messages["FileManager.popMenu.cut"], iconCls:'db-icn-cut', handler: function() { this.cutSelected(); }, scope: this },
        {text: Plugin.messages["FileManager.popMenu.copy"], iconCls:'db-icn-copy', handler: function() { this.copySelected(); }, scope: this },
        '-',
        {text: Plugin.messages["FileManager.popMenu.delete"], iconCls:'db-icn-delete', handler: function() { this.moveToRecycleBin(null, this.contextFiles); }, scope: this },
        {text: Plugin.messages["FileManager.popMenu.rename"], iconCls:'db-icn-rename', handler: function() { this.renameFile(this.contextFiles[0]); }, scope: this },
        '-',
        {text: Plugin.messages["FileManager.popMenu.properties"], iconCls:'db-icn-properties', handler: function() { this.showFileProperties(this.contextFiles[0]); }, scope: this }
    );   
    
    this.multipleItemsMenu = new Ext.menu.Menu();
    this.multipleItemsMenu.add(         
        //{text: 'Add to archive...', iconCls:'db-icn-folder-zip', handler: function() { this.compress(this.contextFolders, this.contextFiles); }, scope: this },
        //{text: Plugin.messages["FileManager.popMenu.tagItem"], iconCls:'db-icn-tag-edit', handler: function(){ this.tagItems(this.contextFolders, this.contextFiles); }, scope: this },
        //'-',
        {text: Plugin.messages["FileManager.popMenu.cut"], iconCls:'db-icn-cut', handler: function() { this.cutSelected(); }, scope: this },
        {text: Plugin.messages["FileManager.popMenu.copy"], iconCls:'db-icn-copy', handler: function() { this.copySelected(); }, scope: this },
        '-',
        {text: Plugin.messages["FileManager.popMenu.delete"], iconCls:'db-icn-delete', handler: function() { this.moveToRecycleBin(this.contextFolders, this.contextFiles); }, scope: this },
        '-',
        {text: Plugin.messages["FileManager.popMenu.properties"], iconCls:'db-icn-properties', handler: function() { this.showSelectedItemsProperties(); }, scope: this }
    );   
    
    this.sharedItemsMenu = new Ext.menu.Menu();
    this.sharedItemsMenu.add(         
        //{text: 'Add to archive...', iconCls:'db-icn-folder-zip', handler: function() { this.compress(this.contextFolders, this.contextFiles); }, scope: this },
        '-',
        {text: Plugin.messages["FileManager.popMenu.cut"], iconCls:'db-icn-cut', handler: function() { this.cutSelected(); }, scope: this },
        {text: Plugin.messages["FileManager.popMenu.copy"], iconCls:'db-icn-copy', handler: function() { this.copySelected(); }, scope: this },
        '-',
        {text: Plugin.messages["FileManager.popMenu.delete"], iconCls:'db-icn-delete', handler: function() { this.moveToRecycleBin(this.contextFolders, this.contextFiles); }, scope: this },
        '-',
        {text: Plugin.messages["FileManager.popMenu.properties"], iconCls:'db-icn-properties', handler: function() { this.showSelectedItemsProperties(); }, scope: this }
    );      
    
    this.recyclebinItemsMenu = new Ext.menu.Menu();
    this.recyclebinItemsMenu.add( 
        {text: Plugin.messages["FileManager.popMenu.delete"], iconCls:'db-icn-delete', handler: function() { this.deleteItems(this.contextFolders, this.contextFiles); }, scope: this },
        '-',
        {text: Plugin.messages["FileManager.popMenu.cut"], iconCls:'db-icn-cut', handler: function() { this.cutSelected(); }, scope: this },
        {text: Plugin.messages["FileManager.popMenu.copy"], iconCls:'db-icn-copy', handler: function() { this.copySelected(); }, scope: this },
        '-',
        {text: Plugin.messages["FileManager.popMenu.properties"], iconCls:'db-icn-properties', handler: function() { this.showSelectedItemsProperties(); }, scope: this }
    );
    
    this.publishedFilesMenu = new Ext.menu.Menu();
    this.publishedFilesMenu.add( 
        {text: Plugin.messages["FileManager.popMenu.sendLink"], iconCls:'db-icn-email-attach', handler: function() { this.sendPublishedFileLink(this.contextFiles[0]); }, scope: this },
        {text: Plugin.messages["FileManager.popMenu.removePublish"], iconCls:'db-icn-publish-remove', handler: function() { this.unPublishFile(this.contextFiles[0]); }, scope: this },
        {text: Plugin.messages["FileManager.popMenu.gotoFolder"], iconCls:'db-icn-folder-open', handler: function() { this.showFolder(this.contextFiles[0].FolderID); }, scope: this, hidden: true },
        '-',
        {text: Plugin.messages["FileManager.popMenu.properties"], iconCls:'db-icn-properties', handler: function() { this.publishFile(this.contextFiles[0]); }, scope: this }
    );           
    
    this.publishedFoldersMenu = new Ext.menu.Menu();
    this.publishedFoldersMenu.add( 
        {text: Plugin.messages["FileManager.popMenu.sendLink"], iconCls:'db-icn-email-attach', handler: function() { this.sendPublishedFolderLink(this.contextFolders[0]); }, scope: this },
        {text: Plugin.messages["FileManager.popMenu.removePublish"], iconCls:'db-icn-publish-remove', handler: function() { this.unPublishFolder(this.contextFolders[0]); }, scope: this },
        {text: Plugin.messages["FileManager.popMenu.gotoFolder"], iconCls:'db-icn-folder-open', handler: function() { SelectFolder(GetSelectedFolder().ParentID); }, hidden:true },
        '-',
        {text: Plugin.messages["FileManager.popMenu.properties"], iconCls:'db-icn-properties', handler: function() { this.publishFolder(this.contextFolders[0]); }, scope: this }
    );
    
    this.mainViewMenu = new Ext.menu.Menu({
        items: [
            {text: Plugin.messages["FileManager.popMenu.view"], menu: this.menuChangeView},
            '-',
            {text: Plugin.messages["FileManager.popMenu.sort"], menu: { items: [
                {text: Plugin.messages["FileManager.popMenu.name"], checked: false, group: "sort-field", handler: function(){ this.filesView.setSortField('name'); }, scope: this},
                {text: Plugin.messages["FileManager.popMenu.size"], checked: true, group: "sort-field", handler: function(){ this.filesView.setSortField('size'); }, scope: this},
                {text: Plugin.messages["FileManager.popMenu.type"], checked: false, group: "sort-field", handler: function(){ this.filesView.setSortField('type'); }, scope: this},
                {text: Plugin.messages["FileManager.popMenu.modified"], checked: false, group: "sort-field", handler: function(){ this.filesView.setSortField('dateModified'); }, scope: this}
            ]}},
            {text: Plugin.messages["FileManager.popMenu.sortAscending"], iconCls:'db-icn-sort-asc', handler: function(){ this.filesView.setSortDirection('asc'); }, scope: this},
            {text: Plugin.messages["FileManager.popMenu.sortDescending"], iconCls:'db-icn-sort-desc', handler: function(){ this.filesView.setSortDirection('desc'); }, scope: this}
        ]
    });
}

FileManager.FileManager.prototype.initToolbar = function(elem) {
   
    this.menuChangeView = new Ext.menu.Menu({
        items: [
		    {id:'mi-changeview-thumb', text:Plugin.messages["FileManager.tool.item.views.thumbnails"], iconCls:'db-icn-views-thumb', handler: function() {this.changeView('thumbs');}, scope: this },
		    {id:'mi-changeview-tile', text:Plugin.messages["FileManager.tool.item.views.tiles"], iconCls:'db-icn-views-tile', handler: function() {this.changeView('tiles');}, scope: this },
		    {id:'mi-changeview-icon', text:Plugin.messages["FileManager.tool.item.views.icons"], iconCls:'db-icn-views-icon', handler: function() {this.changeView('icons');}, scope: this },
		    {id:'mi-changeview-detail', text:Plugin.messages["FileManager.tool.item.views.details"], iconCls:'db-icn-views-detail', handler: function() {this.changeView('details');}, scope: this }
        ]
    });
    
    this.toolbar = new Ext.Toolbar({
        renderTo: elem,
        cls: 'db-toolbar',
        items: [
            {id: 'tbBack', text: Plugin.messages["FileManager.tool.item.back"], tooltip: Plugin.messages["FileManager.tool.item.back.tip"], iconCls: 'db-icn-back', disabled: true, handler: function() { this.goBack(); }, scope: this },
            {id: 'tbForward', text: '', tooltip: Plugin.messages["FileManager.tool.item.forward.tip"], iconCls: 'db-icn-forward', disabled: true, handler: function() { this.goForward(); }, scope: this },
            {id: 'tbUp', text: '', tooltip: Plugin.messages["FileManager.tool.item.up.tip"], iconCls: 'db-icn-up', disabled: true, handler: function() { this.goUp(); }, scope: this },
            {id: 'tbRefresh', text: Plugin.messages["FileManager.tool.item.refresh"], tooltip: Plugin.messages["FileManager.tool.item.refresh.tip"], iconCls: 'db-icn-refresh', handler: function() { this.refreshAll(); }, scope: this },
            '-',
            {id: 'tbDelete', text: Plugin.messages["FileManager.tool.item.delete"], tooltip: Plugin.messages["FileManager.tool.item.delete.tip"], iconCls: 'db-icn-delete', handler: function() { this.deleteSelected(true); }, scope: this },
            {id: 'tbCut', text: Plugin.messages["FileManager.tool.item.cut"], tooltip: Plugin.messages["FileManager.tool.item.cut.tip"], iconCls: 'db-icn-cut', handler: function() { this.cutSelected(); }, scope: this  },
            {id: 'tbCopy', text: Plugin.messages["FileManager.tool.item.copy"], tooltip: Plugin.messages["FileManager.tool.item.copy.tip"], iconCls: 'db-icn-copy', handler: function() { this.copySelected(); }, scope: this  },
            {id: 'tbPaste', text: Plugin.messages["FileManager.tool.item.paste"], tooltip: Plugin.messages["FileManager.tool.item.paste.tip"], iconCls: 'db-icn-paste', handler: function() { this.pasteOnSelected(); }, scope: this  },
            '-',
            new Ext.Toolbar.MenuButton({id: 'tbMultipleUpload', text: Plugin.messages["FileManager.tool.item.upload"], tooltip: Plugin.messages["FileManager.tool.item.upload.tip"], iconCls: 'db-icn-upload', handler: function() { this.upload(true); }, scope: this, menu: { items: [
                {text: Plugin.messages["FileManager.tool.item.upload_local"], iconCls: 'db-icn-upload-local', handler: function() { this.upload(true); }, scope:this}
                //,
                //{text: 'Upload From URL', iconCls:'db-icn-upload-url', handler: function() { this.uploadFromUrl(); }, scope:this}            
            ]}}),
            {id: 'tbDownload', text: Plugin.messages["FileManager.tool.item.download"], tooltip: Plugin.messages["FileManager.tool.item.download.tip"], iconCls:'db-icn-download', handler: function() { this.downloadSelected(); }, scope: this },
            '-',        
            {id: 'tbEmail', text: Plugin.messages["FileManager.tool.item.email"], tooltip: Plugin.messages["FileManager.tool.item.email.tip"], iconCls:'db-icn-email-attach', handler: function() { this.sendFiles(); }, scope: this },
            '-',
		    new Ext.Toolbar.MenuButton({
			    text: Plugin.messages["FileManager.tool.item.views"], tooltip: Plugin.messages["FileManager.tool.item.views.tip"], id: 'tbChangeView', iconCls:'db-icn-views', handler: function() {this.changeView();}, scope: this, menu : this.menuChangeView })
        ]
    });
}

FileManager.FileManager.prototype.initAddressBar = function(elem) {
    addressComboArray = [
    ];    
    var store = new Ext.data.SimpleStore({
        fields: ['id', 'path'],
        data : addressComboArray
    });    
    this.addressCombo = new Ext.form.ComboBox({
        store: store,
        displayField:'path',
        valueField: 'id',
        typeAhead: false,
        mode: 'local',
        triggerAction: 'all',
        selectOnFocus:false,
        width:615
    });
    
    this.addressCombo.on('specialkey', function(fld, e) {
        if(e.getKey() == e.ENTER) {
            var rawValue = this.addressCombo.getRawValue();
            
            var row = null;
            var index = 0;
            while(row = this.allFolders[index]) {
                if (row[1].toLowerCase() == rawValue.toLowerCase()) {
                    this.showFolder(row[0]);
                    return;
                }
                index++;
            }
            
            RemoteMethods.GetFolderIdByPath(rawValue,true,
            	function(result,success,error) {
            		if(success && result.id!=null && result.id!="") {
            			this.showFolder(result.id);
            		} else {
            			this.showError(Plugin.messages["FileManager.addressBar.enter.error"].replace("{1}" ,rawValue));
            		}	       
	        	},
	        	this
	        );            
        }
    }, this);  
    
    this.addressCombo.on('select', function(combo, record, index) {
        this.showFolder(this.addressCombo.getValue());
    }, this);
    
    this.refreshAddressBar();  
    
    
    this.searchBox = new Ext.form.TextField({
            name: 'first',
            width:145,
            emptyText: Plugin.messages["FileManager.addressBar.searchText"]
    });
    
    this.searchBox.on('specialkey', function(fld, e) {
        if(e.getKey() == e.ENTER) {            
            this.search(this.searchBox.getValue());
        }
    }, this);
    
    this.addressbar = new Ext.Toolbar({
        renderTo: elem,
        cls: 'db-addressbar',
        items: [
            Plugin.messages["FileManager.addressBar.address"] + ': ',
            this.addressCombo,
            ' &nbsp;&nbsp; ',
            this.searchBox,
            {id: 'tbSearch', tooltip: Plugin.messages["FileManager.addressBar.search.tip"], cls: 'x-btn-text-icon', iconCls:'db-icn-search', handler: function() { this.search(this.searchBox.getValue()); }, scope: this }
        ]
    });

}


FileManager.FileManager.prototype.initKeyboard = function() {
    var map = new Ext.KeyMap(this.getEl(), [
        {
            key: [113],
            scope: this,
            fn: function(){ this.renameSelected(); }
        }, {
            key: [46],
            scope: this,
            fn: function(){ this.deleteSelected(true); }
        }, {
            key: [46],
            shift: true,
            scope: this,
            fn: function(){ this.deleteSelected(false); }
        }, {
            key: "A",
            ctrl: true,
            scope: this,
            fn: function(){ this.selectAllItems(); }
        }, {
            key: "N",
            ctrl: true,
            shift: true,
            scope: this,
            fn: function(){ this.upload(false); }
        }, {
            key: "L",
            ctrl: true,
            shift: true,
            scope: this,
            fn: function(){ this.upload(true); }
        }, {
            key: "X",
            ctrl: true,
            scope: this,
            fn: function(){ this.cutSelected(); }
        }, {
            key: "V",
            ctrl: true,
            scope: this,
            fn: function(){ this.pasteOnSelected(); }
        },  {
            key: "V",
            ctrl: true,
            shift: true,
            scope: this,
            fn: this.uploadFromUrl
        }
    ]);    
}

FileManager.FileManager.prototype.setupFileMenu = function(menu, file) {
    var fileName = file.Name;
    var extension = fileName.substr(fileName.lastIndexOf(".") + 1);
    extension = extension.toLowerCase();
    
    //menu.items.get('muExtract').hide();
    //menu.items.get('muPlay').hide();
    //menu.items.get('muPdf').hide();
    
    switch(extension) {
        case 'zip':
            //menu.items.get('muExtract').show();
            break;                  
            
        case 'doc':
        case 'rtf':
        case 'odt':
        case 'sxw':
        case 'html':
        case 'txt':
        case 'xls':
        case 'ods':
        case 'sxc':
            break;            
        
        case 'ps':    
        case 'pdf':
            //menu.items.get('muPdf').show();
            break;             
            
        case 'ppt':
        case 'pps':
            break;
            
        case 'jpg':
        case 'jpeg':
        case 'gif':
        case 'bmp':
        case 'png':
            break; 
                       
        case 'asf':
        case 'avi':
        case 'wmv':
        case 'wma':
        case 'mpg':    
            //menu.items.get('muPlay').show(); 
            //if (Ext.isIE === false)
            //    menu.items.get('muPlay').disable(); 
            break;             
        
        case 'mp3':
        case 'mov':
        case 'mp4':
        case 'm4v':
        case 'm4b':
        case '3gp':
        case 'm4a':
            //menu.items.get('muPlay').enable(); 
            //menu.items.get('muPlay').show();
            break;                  
    }
}